@extends('blog.layouts.app')
@section('title', '归档')

@section('content')
    <div class="article-archives">
        <ul class="year">
            @foreach($archives as $year => $articles)
            <li>
                <h2>{{ $year }}</h2>
                <ul class="date">
                    @foreach($articles as  $article)
                        <li>{{ $article->dateline }}   <a href="{{ $article->link() }}">{{ $article->title }}</a></li>
                    @endforeach
                </ul>
            </li>
            @endforeach
        </ul>
    </div>
@stop